package com.example.service;

import com.example.fallback.HelloFeignFallbackService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author tgj
 * @Date 21:25 2021/5/6
 */
@FeignClient(name = "provide",fallback = HelloFeignFallbackService.class)
public interface HelloFeignService {
    @RequestMapping("/test/test")
    String hello(@RequestParam("value") String name);
}
